import Vue from 'vue'
import Router from 'vue-router'
import Login from '../components/login.vue'
import Setpwd from '../components/setpwd/setpwd.vue'
import Home from '../components/home/home.vue'
import Send from '../components/send/send.vue'
import Accept from '../components/accept/accept.vue'
import Recharge from '../components/recharge/recharge.vue'
import Transaction from '../components/transaction/transaction.vue'
import History from '../components/history/history.vue'
import Currency from '../components/currency/currency.vue'
import Contract from '../components/contract/contract.vue'
import Help from '../components/help/help.vue'
import Privacy from '../components/privacy/privacy.vue'
import PrivateKey from '../components/privatekey/privatekey.vue'
import Wallet from '../components/wallet/wallet.vue'
import Keystore from '../components/keystore/keystore.vue'
import Password from '../components/password/password.vue'
import Newpassword from '../components/newpassword/newpassword.vue'
import Relation from '../components/relation/relation.vue'
import Linkman from '../components/linkman/linkman.vue'
import Addman from '../components/addman/addman.vue'
import Transfer from '../components/transfer/transfer.vue'
import Auth from '../components/auth/auth.vue'
import Paydetail from '../components/paydetail/paydetail.vue'
import Property from '../components/property/property.vue'

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            name: 'login',
            component: Login
        },
        {
            path:'/setpwd',
            name: 'setpwd',
            component: Setpwd
        },
        {
            path: '/home',
            name: 'home',
            component:Home,
            children:[
                {
                    path: 'send',
                    component:Send
                },
                {
                    path: 'accept',
                    component:Accept
                },
                {
                    path: 'recharge',
                    component:Recharge
                },
                {
                    path: 'transaction',
                    component:Transaction
                },
                {
                    path: 'history',
                    component:History
                },
                {
                    path: 'currency',
                    component:Currency
                },
                {
                    path: 'contract',
                    component:Contract
                },
                {
                    path: 'help',
                    component:Help
                },
                {
                    path: 'privatekey',
                    component: PrivateKey
                },
                {
                    path: 'wallet',
                    component: Wallet
                },
                {
                    path: 'privacy',
                    component:Privacy
                },
                {
                    path: 'keystore',
                    component: Keystore
                },
                {
                    path: 'password',
                    component: Password
                },
                {
                    path: 'newpassword',
                    component: Newpassword
                },
                {
                    path: 'relation',
                    component: Relation
                },
                {
                    path: 'linkman',
                    component: Linkman
                },
                {
                    path: 'addman',
                    component: Addman
                },
                {
                    path:'transfer',
                    component: Transfer
                },
                {
                    path:'auth',
                    component: Auth
                },
                {
                    path:'paydetail',
                    component: Paydetail
                },
                {
                    path: 'property',
                    component: Property
                }
            ]
        },
        {
            path: '*',
            redirect: '/'
        }
    ]
})
